﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Educational_School_Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>管理面板</title>
<link rel="stylesheet" type="text/css" href="../../Themes/Default/Css/Common.css" />
<link rel="stylesheet" type="text/css" href="../../Themes/Default/Css/Content.css" />
<link rel="stylesheet" type="text/css" href="../../Themes/Default/Css/Core.css" />
<link rel="stylesheet" type="text/css" href="../../Themes/Default/Css/Layout.css" />
<link rel="stylesheet" type="text/css" href="../../Themes/Default/Css/Dock.css" />
<link rel="stylesheet" type="text/css" href="../../Themes/Default/Css/Window.css" />
<link rel="stylesheet" type="text/css" href="../../Themes/Default/Css/Tabs.css" />
<script type="text/javascript" src="../../JS/mootools-1.2.4-core-yc.js"></script>
<script type="text/javascript" src="../../JS/mootools-1.2.4-more-yc.js"></script>
<!--[if IE]>
	<script type="text/javascript" src="../../JS/excanvas_r43_zip.js"></script>
<![endif]-->
<script type="text/javascript" src="../../JS/mocha.js"></script>
<script type="text/javascript" src="../../JS/mocha-plugin.js"></script>
<script type="text/javascript">
window.addEvent('domready', function(){

MUI.keepLive=function(){
    new Request.JSON({url:'KeepLive.aspx',noCache:true,onSuccess:function(result){
            if(!result.keepLive)
                window.location.href='Login.aspx';
            else
            {
                MUI.appendStatusMessage({'text':'与服务器成功通讯以保持在线'});
            }
		},onFailure:function(error){
			MUI.keepLive.delay(60000);
	}}).get();
};

MUI.layout=function(){
    new MUI.Column({
		id: 'leftColumn',
		placement: 'left',
		width: 200,
		resizeLimit: [100, 300]
	});
	
	new MUI.Column({
		id: 'mainColumn',
		placement: 'main',
		resizeLimit: [100, 300]
	});
	
	new MUI.Panel({
		id: 'filesPanel',
		title: '菜单',		
		contentURL: 'Menu.aspx',
		column: 'leftColumn',
		onContentLoaded: function(){
		    if (buildTree) buildTree('tree1');
		}
	});
	
	new MUI.Panel({
		id: 'copyrightInformation',
		title: '版权',
		header: false,	
		contentURL: '../../Basic/Shared/Copyright.aspx',
		column: 'leftColumn',
		height: 90,
		require: {	
		},
		onContentLoaded: function(){	
		}
	});
    new MUI.Panel({
		id: 'workspace',
		title: '工作区',
		contentURL: 'KeepLive.aspx',
		column: 'mainColumn',
		padding: { top: 0, right: 0, bottom: 0, left: 0 },
		require: {	
		},
		onContentLoaded: function(){
		}
	});
	new MUI.Panel({
		id: 'status Bar',
		title: '状态栏',
		header: false,
		content:'<div id="statusBarText"><div>',
		column: 'mainColumn',
		height:80,
		require: {	
		},
		onContentLoaded: function(){	
		}
	});
	MUI.myChain.callChain();
};

    
MUI.binddingEvent=function(){
//    $$('#menuAdminInfo','#linkAdminInfo').addEvent('click',function(){
//        new MUI.Window({
//			id: 'windowAdminInfo',
//			title: '学校信息',
//			contentURL: 'AdminInfo.aspx',
//			maximizable:false,
//			resizable:false,
//			width: 500,
//			height: 300
//		});
//    });
    $('menuSchoolChangePassword').addEvent('click',function(){
        MUI.openChildByWindow('windowChangePassword','修改密码','ChangePassword.aspx',300,120);
    });
    $('menuMinimizeAllWindow').addEvent('click',function(){
		MUI.minimizeAll();
    });
    $('menuCloseAllWindow').addEvent('click',function(){
		MUI.closeAll();
    });
};


MUI.initialize=function(){
    MUI.myChain = new Chain();
    MUI.myChain.chain(
	    function(){MUI.Desktop.initialize();},
	    function(){MUI.Dock.initialize();},
	    function(){MUI.layout();},
	    function(){MUI.binddingEvent();}
    ).callChain();
    MUI.keepLive.periodical(1200000);
    MUI.appendStatusMessage({'text':'成功载入系统'});
};
MUI.requireAll(MUI.initialize);
});
</script>
<style type="text/css">
.tableLeft{width:100px;text-align:right;}
.tableLeft1{width:20%;text-align:right;}
.tableLeft2{width:30%;}
.tableFixed tr td{height:30px;line-height:30px;}
.tableContent1{background-color:#F7F7F7;}
.tableContent2{background-color:#FFFFFF;}
a.operationLink{margin-left:10px;font-size:12px;color:#096DD1;}
</style>
</head>
<body>
<div id="desktop">
	<div id="desktopHeader">
		<div id="desktopTitlebarWrapper">
			<div id="desktopTitlebar">
				<h1 class="applicationTitle">元系统</h1>
				<h2 class="tagline">小窍门 <span class="taglineEm">本系统基于Mootools下的Mocha构建，建议在1024*768以上分辨率，F11全屏模式下浏览</span></h2>
				<div id="topNav">
					<ul class="menu-right">
						<li>欢迎您 <a id="linkAdminInfo" href="#"><%=school.schoolName %></a>.</li>
						<li><a href="Login.aspx?Action=loginOut">退出/重新登录</a></li>
					</ul>
				</div>
			</div>
		</div>
		<div id="desktopNavbar">
			<ul>
			    <li><a href="#">控制面板</a>
					<ul>
					    <li><a id="menuSchoolInfo" href="#">学校信息</a></li>
					    <li><a id="menuSchoolChangePassword" href="#">修改密码</a></li>
					</ul>
				</li>
				<li><a href="#">系统</a>
					<ul>
					    <li><a id="menuMinimizeAllWindow" href="#">最小化所有窗口</a></li>
					    <li><a id="menuCloseAllWindow" href="#">关闭所有窗口</a></li>
					    <li><a id="menuHelper" href="#">帮助</a></li>
						<li><a href="Login.aspx?Action=loginOut">退出/重新登录</a></li>
					</ul>
				</li>
			</ul>	
				
			<div class="toolbox divider">
				<div id="spinnerWrapper"><div id="spinner"></div></div>
			</div>		

		</div><!-- desktopNavbar end -->
	</div><!-- desktopHeader end -->

	<div id="dockWrapper">
		<div id="dock">
			<div id="dockPlacement"></div>
			<div id="dockAutoHide"></div>
			<div id="dockSort"><div id="dockClear" class="clear"></div></div>
		</div>
	</div>

	<div id="pageWrapper"></div>
</div>
</body>
</html>

